"""
装饰器通用参数
"""


def decorate(fun):
    print("start----------")

    def wrapper(*args, **kwargs):
        print(args)
        print(kwargs)
        fun(*args)
        pass

    print("end---------------")
    return wrapper


@decorate
def func(time):
    print("---------{}".format(time))


func("20201112")
